package com.example.myapplication.list

import com.example.myapplication.R
import com.example.myapplication.TestResult
import org.hades.library.adapter.base.binder.BaseItemBinder
import org.hades.library.adapter.base.binder.QuickItemBinder
import org.hades.library.adapter.base.viewholder.BaseViewHolder

class TestItemBinder: QuickItemBinder<TestResult>() {
    override fun convert(holder: BaseViewHolder, data: TestResult) {
        holder.setText(R.id.tv_text, data.str)
    }

    override fun getLayoutId(): Int {
        return R.layout.test_rv_item
    }
}